package cn.lsnu.modules.watch.service;

import cn.lsnu.common.interfacetools.interfaceentity.Page;
import cn.lsnu.common.interfacetools.interfaceservice.BaseService;
import cn.lsnu.modules.watch.entity.WatchAddEntity;
import cn.lsnu.modules.watch.mapper.WatchNearMapper;
import cn.lsnu.utils.Guuid;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WatchNearService extends BaseService<WatchAddEntity,WatchNearMapper> {

    @Override
    public void save(WatchAddEntity entity) throws Exception {
        entity.setWatchId(Guuid.uuid());
        super.save(entity);
    }

    @Override
    public WatchAddEntity get(String key) throws Exception {
        return super.get(key);
    }

    @Override
    public WatchAddEntity getEntity(WatchAddEntity entity) throws Exception {
        return super.getEntity(entity);
    }

    @Override
    public List<WatchAddEntity> findList(WatchAddEntity entity) throws Exception {
        return super.findList(entity);
    }

    @Override
    public Page<WatchAddEntity> findPage(WatchAddEntity entity) throws Exception {
        return super.findPage(entity);
    }

    @Override
    public void delete(WatchAddEntity entity) throws Exception {
        super.delete(entity);
    }

    @Override
    public void update(WatchAddEntity entity) throws Exception {
        super.update(entity);
    }
}
